/*
 * tank父类,
 * x: 坦克的对应的地图二维数组横坐标
 * y: 坦克的对应的地图二维数组纵坐标
 *
 * face: tankPlayer1Image -> 我方玩家1
 * 
 */


function Tank() {
    this.x = 0;
    this.y = 0;
    this.speed = 0;
    this.face = 'tankPlayer1UpImage';
    this.direction = 'up';
}

/*
 * 我方tank
 */
function MyTank() {
}

MyTank.prototype = new Tank();
MyTank.prototype.constructor = MyTank;

/*
 * 敌方tank
 */
function EnemyTank() {
}

EnemyTank.prototype = new Tank();
EnemyTank.prototype.constructor = EnemyTank;


